#include <Kernel.h>

static const String PROGRAM_NAME = "rm";

int main(int argc, char **argv) 
{
  // initialize the file system simulator kernel
  Kernel::initialize();

  // make sure we got the correct number of parameters
  if(argc != 2)
    {
      fprintf(stderr,"%s%s%s%s\n", PROGRAM_NAME , ": usage: ./" ,
	      PROGRAM_NAME , " file-path");
      Kernel::Exit(1);
    }

  // give the parameters more meaningful names
  String file_name = argv[1];

  Kernel::unlink(file_name);

  Kernel::Exit(0);
}

